
package com.bei_en.teacher.management.model.system.bean;

import java.util.*;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import com.bei_en.teacher.management.model.BaseBean;

/**
 * 后台权限相关资源
 * @author Longqs
 * @date 2016-6-15 15:09:26
 */
public class SystemResource extends BaseBean {

    private Integer id; // id
    @NotBlank
    @Length(max = 100)
    private String name; // 名称
    @NotNull
    private Integer parId; // 上级id
    @NotNull
    @Length(max = 100)
    private String sourceKey; // 资源key
    @NotNull
    private Integer status; // 状态,1,正常,0,删除
    @Length(max = 30)
    private String comment; // 备注
    @NotNull
    private Date createTime; // 创建时间
    @NotNull
    private Integer type; // 类型,1,菜单,2,功能
    @Length(max = 100)
    private String url; // 资源路径
    @NotNull
    private Integer order1; // 排序
    @NotBlank
    @Length(max = 20)
    private String dataToggle; // 打开方式
    @Length(max = 50)
    private String pageId; // 页面id

    private Boolean fresh; // 重复打开刷新

    private Boolean external; // 外链

    public void setId(Integer value) {

	this.id = value;
    }

    public Integer getId() {

	return this.id;
    }

    public void setName(String value) {

	this.name = value;
    }

    public String getName() {

	return this.name;
    }

    public void setParId(Integer value) {

	this.parId = value;
    }

    public Integer getParId() {

	return this.parId;
    }

    public void setSourceKey(String value) {

	this.sourceKey = value;
    }

    public String getSourceKey() {

	return this.sourceKey;
    }

    public void setStatus(Integer value) {

	this.status = value;
    }

    public Integer getStatus() {

	return this.status;
    }

    public void setComment(String value) {

	this.comment = value;
    }

    public String getComment() {

	return this.comment;
    }

    public void setCreateTime(Date value) {

	this.createTime = value;
    }

    public Date getCreateTime() {

	return this.createTime;
    }

    public void setType(Integer value) {

	this.type = value;
    }

    public Integer getType() {

	return this.type;
    }

    public void setUrl(String value) {

	this.url = value;
    }

    public String getUrl() {

	return this.url;
    }

    public void setOrder1(Integer value) {

	this.order1 = value;
    }

    public Integer getOrder1() {

	return this.order1;
    }

    public void setDataToggle(String value) {

	this.dataToggle = value;
    }

    public String getDataToggle() {

	return this.dataToggle;
    }

    public void setPageId(String value) {

	this.pageId = value;
    }

    public String getPageId() {

	return this.pageId;
    }

    public void setFresh(Boolean value) {

	this.fresh = value;
    }

    public Boolean getFresh() {

	return this.fresh;
    }

    public void setExternal(Boolean value) {

	this.external = value;
    }

    public Boolean getExternal() {

	return this.external;
    }

}
